package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.ticket.repository.ITicketPackageBatchRepository;
import cc.lj.internal.coupons.infrastructure.po.TicketPackageBatchPO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketPackageBatchMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;
/**
 * 券包与批次关系表仓储实现
 * @author liangxifeng
 * @date 2023-08-24
 */
@Repository("ticketPackageBatchRepository")
public class TicketPackageBatchRepository implements ITicketPackageBatchRepository {
    @Resource(name="ticketPackageBatchMysqlRespository")
    private TicketPackageBatchMysqlRespository repository;


    @Override
    public Integer updateById(TicketPackageBatchPO entityPO) {
        return repository.updateById(entityPO);
    }


    @Override
    public TicketPackageBatchPO getById(Integer id) {
        TicketPackageBatchPO entityPO = repository.getById(id);
        return entityPO;
    }

    @Override
    public PageInfo<TicketPackageBatchPO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<TicketPackageBatchPO> getList(TicketPackageBatchPO ticketPackageBatchPO) {
        return repository.getList(ticketPackageBatchPO);
    }

}
